import http from '../utils/http_interceptor.js';





/**
 * 点赞
 */ 
export const insertGood = async (params = {}, showLoading = false) => {
  return await http.post('/portal/v1/common/good/insertGood', params, {
	  showLoading // 不需要加载中
  });
};

/**
 * 取消点赞
 */ 
export const deleteGood = async (params = {}, showLoading = false) => {
  return await http.post('/portal/v1/common/good/deleteGood', params, {
	  showLoading // 不需要加载中
  });
};


/**
 * 收藏
 */ 
export const addNewsCollection = async (params = {}, showLoading = false) => {
  return await http.post('/spool/v1/news/addNewsCollection', params, {
	  showLoading // 不需要加载中
  });
};

/**
 * 取消收藏
 */ 
export const deleteNewsCollection = async (params = {}, showLoading = false) => {
  return await http.post('/spool/v1/news/deleteNewsCollection', params, {
	  showLoading // 不需要加载中
  });
};